Optimal. Leaf size=19 \[ \frac {\cos (c+d x)}{a d}+\frac {x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2682, 8} \[ \frac {\cos (c+d x)}{a d}+\frac {x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2682
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\cos (c+d x)}{a d}+\frac {\int 1 \, dx}{a}\\ &=\frac {x}{a}+\frac {\cos (c+d x)}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.15, size = 97, normalized size = 5.11 \[ -\frac {\left (2 \sqrt {1-\sin (c+d x)} \sin ^{-1}\left (\frac {\sqrt {1-\sin (c+d x)}}{\sqrt {2}}\right )+(\sin (c+d x)-1) \sqrt {\sin (c+d x)+1}\right ) \cos ^3(c+d x)}{a d (\sin (c+d x)-1)^2 (\sin (c+d x)+1)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 17, normalized size = 0.89 \[ \frac {d x + \cos \left (d x + c\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.67, size = 34, normalized size = 1.79 \[ \frac {\frac {d x + c}{a} + \frac {2}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )} a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.10, size = 43, normalized size = 2.26 \[ \frac {2}{a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.74, size = 52, normalized size = 2.74 \[ \frac {2 \, {\left (\frac {\arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} + \frac {1}{a + \frac {a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.77, size = 29, normalized size = 1.53 \[ \frac {x}{a}+\frac {2}{a\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.77, size = 88, normalized size = 4.63 \[ \begin {cases} \frac {d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} + \frac {d x}{a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} + \frac {2}{a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{2}{\relax (c )}}{a \sin {\relax (c )} + a} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________